home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 104 / MacAddict_104_2005-04.iso / Software / Internet & Communication / WordPress 1.2.2 freeware.dmg / wordpress / wp-admin / index.php < prev    next >
Encoding:
PHP Script  |  2004-02-27  |  290 b   |  14 lines

  1. <?php
  2.  
  3. require('../wp-config.php');
  4. require_once('auth.php');
  5.  
  6. get_currentuserinfo();
  7.  
  8. if (0 == $user_level) {
  9.     $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';
  10. } else {
  11.     $redirect_to = get_settings('siteurl') . '/wp-admin/post.php';
  12. }
  13. header ("Location: $redirect_to");
  14. ?>